package com.py.credit.entity;

import com.py.framework.core.annotation.AdditionalColumn;
import com.py.framework.core.annotation.ShowColumn;

import java.io.Serializable;

/**
 * 企业族谱
 *
 * @author YaoS
 * @date 2019-04-15 10:24
 */
public class CompanyGenealogy implements Serializable {

    /**
     * id
     */
    @AdditionalColumn(alias = "id")
    private Integer id;
    /**
     * 关联名称
     */
    @ShowColumn(tag = "关联名称", alias = "associate_name", order = 2)
    private String associateName;
    /**
     * 资源id
     */
    @ShowColumn(tag = "信息资源标识符", alias = "resource_id", order = 3)
    private String resourceId;
    /**
     * 族谱待关联字段
     */
    @ShowColumn(tag = "关联字段", alias = "associate_column", order = 4)
    private String associateColumn;
    /**
     * 在页面上node展示的字段
     */
    @ShowColumn(tag = "展示字段", alias = "show_column", order = 5)
    private String showColumn;
    /**
     * 关联类型：对外还是对内
     */
    @ShowColumn(tag = "关联类型", alias = "associate_type", order = 6, widgetValue =
            "{\"O\":\"对外关联\",\"I\":\"对内关联\"}")
    private String associateType;
    /**
     * 数据类型：法人还是自然人：100000 100001
     */
    @ShowColumn(tag = "数据类型", alias = "data_type", order = 7, widgetValue =
            "{\"100000\":\"法人数据\",\"100001\":\"自然人数据\",\"100002\":\"非企业法人数据\"}")
    private String dataType;
    /**
     * 族谱待关联表ID
     */
    private String tableId;
    /**
     * 资源名称
     */
    @ShowColumn(tag = "信息资源名", alias = "resource_title", order = 8)
    private String resourceTitle;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAssociateName() {
        return associateName;
    }

    public void setAssociateName(String associateName) {
        this.associateName = associateName;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getAssociateColumn() {
        return associateColumn;
    }

    public void setAssociateColumn(String associateColumn) {
        this.associateColumn = associateColumn;
    }

    public String getShowColumn() {
        return showColumn;
    }

    public void setShowColumn(String showColumn) {
        this.showColumn = showColumn;
    }

    public String getAssociateType() {
        return associateType;
    }

    public void setAssociateType(String associateType) {
        this.associateType = associateType;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getResourceTitle() {
        return resourceTitle;
    }

    public void setResourceTitle(String resourceTitle) {
        this.resourceTitle = resourceTitle;
    }
}
